#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
int main()
{
    int a, b, c;
    while (scanf("%d%d%d", &a, &b, &c) != EOF)
    {
        for (int i = 0; i < 2; i++)
        {
            if (a > b)
            {
                int tmp = a;
                a = b;
                b = tmp;
            }
            if (b > c)
            {
                int tmp = b;
                b = c;
                c = tmp;
            }
        }
        if (a + b <= c)
        {
            printf("Not a triangle!\n");
        }
        else
        {
            if (a == b && a == c)
            {
                printf("Equilateral triangle!\n");
            }
            else if (a == b && a != c || b == c && a != c)
            {
                printf("Isosceles triangle!\n");
            }
            else
            {
                printf("Ordinary triangle!");
            }
        }

    }
    return 0;
}